<template>
  <div class="mask" v-if="show">
    <div class="img-box">
      <img class="img" src="@/assets/bg-develop.png" />
      <div class="close" @click="show = false"></div>
    </div>
  </div>
</template>

<script setup>
let show = ref(false);
const Show = () => {
  show.value = true;
};

defineExpose({
  Show
});
</script>

<style lang="scss" scoped>
.mask {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
}
.img-box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 680px;
  height: 334px;
  .img {
    width: 100%;
    height: 100%;
  }
  .close {
    position: absolute;
    top: 32px;
    right: 53px;
    width: 24px;
    height: 24px;
    cursor: pointer;
  }
}
</style>
